package com.bgs.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Journalism对象", description="新闻表")
public class JournalismVo {
    private static final long serialVersionUID = 1L;
    @TableId("jourId")
    private Integer jourid;
    private String theme;
    private String jrname;
    private String jimage;
    private String content;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
    private LocalDateTime jtime;
    private  String lismtype;
    private  Integer num;
}
